# 简单的文件搜索 everything
# 输入查找路径，输入文件名的一部分:递归查找
# 进行查找
import os

input_path = input("路径->")
pattern = input("文件名->")

# for dirpath, dirnames, filenames in os.walk(input_path):
#     print("--------------")
#     print(f"dirpath = {dirpath}")
#     print("dirnames:")
#     for name in dirnames:
#         print(name)
#     print("filenames:")
#     for name in filenames:
#         print(name)
for dirpath, _, filenames in os.walk(input_path):
    for f in filenames:
        if pattern in f:
            print(f"{dirpath}\\{f}")


